home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / AMOSList / AMOSLIST.0897 / 000158_amos-request@svcs1.digex.net_Sat Aug 9 12:56:01 1997.msg < prev    next >
Text File  |  1997-09-09  |  3KB  |  66 lines

  1. Received: from svcs1.digex.net (svcs1.digex.net [204.91.197.224])
  2.     by mail2.access.digex.net (8.8.5/8.8.5) with ESMTP id MAA19775
  3.     for <mcox@access.digex.net>; Sat, 9 Aug 1997 12:56:00 -0400 (EDT)
  4. Received: (from daemon@localhost)
  5.     by svcs1.digex.net (8.8.5/8.8.5) id LAA05490
  6.     for amos-out; Sat, 9 Aug 1997 11:11:30 -0400 (EDT)
  7. Received: from mail3.access.digex.net (mail3.access.digex.net [205.197.247.4])
  8.     by svcs1.digex.net (8.8.5/8.8.5) with ESMTP id LAA05487
  9.     for <amos-list@svcs1.digex.net>; Sat, 9 Aug 1997 11:11:30 -0400 (EDT)
  10. Received: from mail1-gui.server.virgin.net (mail1-gui.server.virgin.net [194.168.54.1])
  11.     by mail3.access.digex.net (8.8.5/8.8.5) with ESMTP id LAA17858
  12.     for <amos-list@access.digex.net>; Sat, 9 Aug 1997 11:11:28 -0400 (EDT)
  13. Received: from LOCALNAME
  14.           (p51-meadowlark-gui.tch.virgin.net [194.168.69.231])
  15.           by mail1-gui.server.virgin.net (Post.Office MTA v3.0 release 112
  16.           ID# 0-33929U70000L2S50) with SMTP id AAA15831
  17.           for <amos-list@access.digex.net>; Sat, 9 Aug 1997 16:11:03 +0100
  18. Message-ID: <33ECE23B.5B07@virgin.net>
  19. Date: Sat, 09 Aug 1997 14:33:47 -0700
  20. From: --==Murray==-- <malcolm.murray@virgin.net>
  21. X-Mailer: Mozilla 2.02E-VN006  (Win16; I)
  22. MIME-Version: 1.0
  23. To: AMOS List <amos-list@access.digex.net>
  24. Subject: Re: To Chris Hodges
  25. References: <33EC15A2.4AE4@virgin.net>
  26. Content-Type: text/plain; charset=us-ascii
  27. Content-Transfer-Encoding: 7bit
  28. Status: O
  29. X-Status: 
  30.  
  31. > Qrnd(0) appears to equal 3.
  32.  
  33. Sorry. I've just realised that Qrnd(0) or Rnd(0) returns the last value from a Rnd statement.
  34.  
  35. Anyway, I've just been told something that is very useful for one of my games.
  36. That is this.
  37.  
  38. Randomize 10 (or whatever)
  39. For N=1 to 3
  40. Print Rnd(-100)  (note the -ve number)
  41. Next N
  42.  
  43. This program will ALWAYS return the same three numbers.
  44. It doesn't work with Qrnd though.
  45. Is there any way of achieving a similar result with Qrnd?
  46.  
  47. Thanks,
  48. -Murray
  49.  
  50. -- 
  51.  
  52.            \\|//     Alastair Murray
  53.            (o o)       malcolm.murray@virgin.net
  54. |~~~~~~oOOo~(_)~oOOo~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
  55. |         AMINET         |Web-Page (Amiga/Games/AMOS/trek/Music/    |
  56. |     game/role/CHAOS    |                  +more)                  |
  57. |game/jump/Banana Islands|http://freespace.virgin.net/malcolm.murray|
  58. |   game/shoot/Hanger18  |Current Projects:                         |
  59. |    dev/amos/keystate   | >Kill Em All        >Hanger 18 II        |
  60. |    dev/amos/picpack    | >Skool Daze         >The Crow            |
  61. |   game/shoot/traitor   | >Game Creator       >Banana Islands      |
  62. |   game/jump/blobby     | >The Turtleminator                       |
  63. |  game/shoot/extinct    | >Chaos 2                                 |
  64. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  65.  
  66.